package com.per.mybootall.designMode.wrapper;

import org.springframework.stereotype.Component;

/**
 * 对person的装饰class
 * */
@Component
public abstract class personWrapper extends Person {
    private Person person;

    protected personWrapper(Person per) {
        person =per;
    }

    public personWrapper() {
    }

    public void see(){
        person.see();
    }
    public void speak(){
        person.speak();
    }
    public void eat(){
        person.eat();
    }
}
